$(function () {
    var options = {
        toolbar: "#bzjdr_content_toolbar",
        fitColumns: true,
        fit: true,
        singleSelect: true,
        checkbox: true,
        checkOnSelect: false,
        selectOnCheck: false,
        rownumbers: true,
        showFooter: true,
        autoRowHeight: true,
        nowrap: false,
        columns: [
            [
                {field: 'abstract', title: '摘要',align: 'center', width: 50,editor: {type: 'text', options: {required: true}}},
                {field: 'km', title: '会计科目',align: 'center', width: 65},
                {field: 'natural_debit_currency', title: '借方', width: 25,align: 'right',
                    formatter:function(value){
                        var sl = formatJe2(value,",");
                        return sl;
                    }},
                {field: 'natural_credit_currency', title: '贷方', width: 25,align: 'right',
                    formatter:function(value){
                        var sl = formatJe2(value,",");
                        return sl;
                    }}
            ]
        ],
        url: $.webPath() + '/cwgl/bzjdr/findbzjdrfl',
        queryParams: {bzjdrId: $("#bzjdr_content_toolbar [name='bzjdrId']").val()}
    };

    var grid = $('#bzjdr_content_edatagrid').edatagrid(options);
});


